import request from './request'

export function categorySearch(data) {
    return request({
        url: 'share/platform-service/dictionaryCategory/search',
        method: 'post',
        data
    })
}

export function saveOrUpdate(data,action) {
    return request({
        url: 'share/platform-service/dictionaryCategory/'+action,
        method: 'post',
        data
    })
}
export function categoryDeleteData(data) {
    return request({
        url: 'share/platform-service/dictionaryCategory',
        method: 'delete',
        data
    })
}
export function getById(params) {
    return request({
        url: 'share/platform-service/dictionaryCategory/Id/'+params,
    })
}